From f55ccb8a82e4f6cd22165722c79d5851f8072079 Mon Sep 17 00:00:00 2001 From: robertl Date: Wed, 9 Jul 2003 16:04:55 +0000 Subject: [PATCH] Doh! Typo fix for description being clobbered. --- gpsbabel/waypt.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gpsbabel/waypt.c b/gpsbabel/waypt.c index 2aed2bbf6..cb6e26dd5 100644 --- a/gpsbabel/waypt.c +++ b/gpsbabel/waypt.c @@ -77,9 +77,10 @@ waypt_add(waypoint *wpt) xfree(wpt->description); if (wpt->notes != NULL) { wpt->description = xstrdup(wpt->notes); - } - if (wpt->shortname != NULL) { - wpt->description = xstrdup(wpt->shortname); + } else { + if (wpt->shortname != NULL) { + wpt->description = xstrdup(wpt->shortname); + } } } waypt_ct++; -- 2.30.2